<form method="post" action="<?php echo url_for("@sf_guard_signin") ?>" >
<fieldset>
    <?php echo $form->renderHiddenFields() ?>
    <?php if ($form['username']->hasError()): ?>
        <ul class="error_list">
        <?php $error = $form['username']->getError(); ?>
            <li><?php echo $error->getMessage()?></li>
        </ul>
    <?php endif; ?>
    <?php echo $form['username']->renderLabel() ?> <?php echo $form['username']->render() ?>

    <?php if ($form['password']->hasError()): ?>
        <ul class="error_list">
        <?php $error = $form['password']->getError(); ?>
            <li><?php $error->getMessage()?></li>
        </ul>
    <?php endif; ?>
    <?php echo $form['password']->renderLabel() ?> <?php echo $form['password']->render() ?>
      <input type="submit" value="Ввійти" />
  <?php echo link_to('Реєстрація', 'sfApply/apply',array('class' => "registration"))  ?>
</fieldset>
</form>
